#ifndef MY_QUEUE_H
#define MY_QUEUE_H 

#include <list>

#include <boost/shared_ptr.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/thread.hpp>

#include "message.h"
#include "gen_empty.h"


class queue {
public:
	queue() {}
	~queue() {}

	void put(boost::shared_ptr<message> m);
	boost::shared_ptr<message> get();
private:
	std::list<boost::shared_ptr<message> > _list;
	boost::mutex _mutex;
};

#endif
